/**
 * @Author: XZM
 * @Date: 2019/9/27
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 经销商端-经销商项目方案分页查询（只能查询下发该经销商的）
export const getDealerProjectProgramList = (_params) => axios.get(`${SERVER.CMSCLOUD_MARKET}/projectProgram/query/dealer`, {params:_params,menuId:'-1'});
// 经销商端-经销商项目方案导出（只能导出下发到本经销商的）
export const exportDealerProjectProgramList = (params) => axios.post(`${SERVER.CMSCLOUD_MARKET}/projectProgram/query/dealer`, params,  { responseType: 'arraybuffer',timeout:200000,menuId:'-1' });
// 经销商端-记录经销商首次查看信息
export const recordFirstView = (projectProgramId,ownerCode) => axios.put(`${SERVER.CMSCLOUD_MARKET}/projectProgram/query/${projectProgramId}/dealer/${ownerCode}`, {}, {menuId:'-1'});